package com.ruoyi.common.fegin;

import com.alibaba.fastjson2.JSONObject;
import feign.Body;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.springframework.stereotype.Service;

@Service
public interface PortalApi {

    @RequestLine("POST /auth/login")
    @Headers(
            {
                    "Content-Type: application/json",
            }
    )
    @Body("{body}")
    JSONObject login(@Param("body") String body);

}
